using System;
using CookComputing.XmlRpc;
using Whitemice.MOGI;

namespace Whitemice.MOGI.ZOGI
{
	public class PhoneNumber : Whitemice.MOGI.IPhoneNumber
	{		
		Payload	payload;
		
		public PhoneNumber(Payload payload)
		{
			this.payload = payload;
		}
		
		public string TypeAbbreviation 
		{ 
			get { return payload.GetStringForKey("type"); } 
		}

		public string Info 
		{ 
			get { return payload.GetStringForKey("info"); }
			set { payload.SetValueForKey("info", value); }
		}

		public string DialNumber 
		{ 
			get { return payload.GetStringForKey("number"); }
			set { payload.SetValueForKey("number", value); }
		}
	}
}